const app = getApp();
Page({
  data: {
    qrcodeUrl: "", //二维码地址
    createTime: "", //创建时间
    expirationDate: "", //过期时间
    isExpiration: 0, // 是否过期 0没过期 1已过期
    address: '' // 小区地址
  },
  onLoad(options) {
    let authorization = wx.getStorageSync("authorization");
    // 未登录 隐藏回到主页按钮
    if (authorization == "") wx.hideHomeButton();
    let data = JSON.parse(options.data);
    this.setData({
      qrcodeUrl: data.url,
      createTime: data.createTime,
      expirationDate: data.expirationDate,
      isExpiration: data.isExpiration,
      address: data.address
    })
  },
});
